<script>
	export default {
		onLaunch: function() {
			const token = uni.getStorageSync('token')
			if (!token) {
				uni.reLaunch({
					url: '/pages/login/login'
				})
			}
		},
		onShow: function() {
			const detectDeviceType = () => /Android|webOS|iPhone|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "1" : "2";
			//  if (detectDeviceType() === '2') {
			// 	window.location.href = 'https://ai.v-wim.xyz/#/'
			// }
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";

	.contents {
		background: #000000;
		overflow: hidden;
		padding-top: 30upx;
		padding-left: 30upx;
		padding-right: 30upx;
		padding-bottom: 30upx;
		height: calc(100vh - 60upx);
	}

	ul,
	li {
		margin: 0 !important;
		padding: 0 !important;
	}

	ol {
		margin-block-start: 0;
		margin-block-end: 0;
		margin-inline-start: 0px;
		margin-inline-end: 0px;
		padding-inline-start: 20px;
	}

	.el-input__inner {
		-webkit-appearance: none;
		background-color: #333!important;
		background-image: none;
		border-radius: 4px;
		border: 2upx solid #DCDFE6;
		box-sizing: border-box;
		color: #e9e9e9!important;
		display: inline-block;
		height: 40px;
		line-height: 40px;
		outline: 0;
		padding: 0 15px;
		-webkit-transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
		transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
		width: 100%;
	}
	.el-textarea__inner{
		background-color: #333!important;
		color: #e9e9e9!important;
	}
	.el-form-item__label{
		color: #d9d9d9!important;
	}
	.el-card{
		background: #333333!important;
	}
	.el-tabs__item.is-active{
		color:  #409EFF!important;
	}
	.el-tabs__item{
		color: #d9d9d9!important;
	}
	.el-dialog__header{
		background: #000000;
		.el-dialog__title{
			color: #d9d9d9;
		}
	}
	.el-dialog__footer{
		background: #000000;
	}
	.el-dialog__body{
		background: #333333!important;
	}
	.el-button--info.is-disabled, .el-button--info.is-disabled:active, .el-button--info.is-disabled:focus, .el-button--info.is-disabled:hover {
	    color: #FFF;
	    background-color: #4e5dcd !important;
	    border-color: #4e5dcd !important;
	}
</style>